<?php defined('SYSPATH') or die('No direct script access.');
/**
 * FORGE base Extention library.
 *
 * $Id: Form_Input.php 2593 2008-04-28 20:04:22Z Geert $
 *
 * @package    Forge
 * @author     Kohana Team
 * @copyright  (c) 2007-2008 Kohana Team
 * @license    http://kohanaphp.com/license.html
 */
class Form_Extention_Core extends Form_Input {
  protected $data = array
	(
		'type' => 'div'
	);
	protected $protect = array('type');

	public function __construct($value)
	{
		$this->data['value'] = $value;
	}

	public function render()
	{
		$data = $this->data;
		unset($data['label']);

		return form::open_div($data);
	}

	public function validate()
	{
		// Submit buttons do not need to be validated
		return $this->is_valid = TRUE;
	}
}
